﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="Dangky.aspx.cs" Inherits="NCKH.Dangky" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="margin-left:70px; margin-top:50px; text-align:left; border:1px">
        <th colspan="3"><h2 style="text-align:center">Đăng ký tài khoản</h2></th>
        <tr>
            <td>Tên truy cập </td>
            <td><asp:TextBox ID="txttentruycap" runat="server" Width="175px"></asp:TextBox> </td>
            <td><asp:RequiredFieldValidator ID="rfvTentruycap" runat="server"
                ControlToValidate="txttentruycap" Text="* Chưa nhập tên truy cập" ForeColor="#990000"></asp:RequiredFieldValidator>
                <asp:Label ID="lblthongbao" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>Email</td>
            <td><asp:TextBox ID="txtEmail" runat="server" Width="175px" TextMode="Email"></asp:TextBox></td>
            <td><asp:RequiredFieldValidator ID="rfvEmail" runat="server"
                ControlToValidate="txtEmail" Text="* Chưa nhập Email" ForeColor="#990000"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>Mật khẩu</td>
            <td><asp:TextBox ID="txtmatkhau" runat="server" TextMode="Password" Width="175px"></asp:TextBox></td>
            <td><asp:RequiredFieldValidator ID="rfvMatkhau" runat="server"
                ControlToValidate="txtmatkhau" Text="* Chưa nhập mật khẩu" ForeColor="#990000"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>Nhập lại mật khẩu</td>
            <td><asp:TextBox ID="txtnhaplai" runat="server" TextMode="Password" Width="174px"></asp:TextBox></td>
            <td><asp:RequiredFieldValidator ID="rfvMatkhaulai" runat="server"
                ControlToValidate="txtnhaplai" Text="* Chưa nhập mật khẩu" ForeColor="#990000"></asp:RequiredFieldValidator><br />
                <asp:CompareValidator ID="cpvnhappass" runat="server" ControlToCompare="txtmatkhau" ControlToValidate="txtnhaplai"
                    Type="String" Display="Dynamic" Operator="Equal" 
                    Text=" * Sai mật khẩu" ForeColor="#990000"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <asp:Button ID="btndangki" runat="server" Text="Đăng kí"  align="center" OnClick="btndangki_Click" Height="32px" Width="71px" />
                <asp:Button ID="btnhuy" runat="server" Text="Hủy bỏ"  align="center" style="margin-left: 12px" OnClick="btnhuy_Click" Height="31px" Width="63px" CausesValidation="false" /><br />
            </td>
        </tr>
    </table>
</asp:Content>
